package com.android.huimeiqupin.model.group;

import java.util.List;

/**
 * Created by Administrator on 2016/10/8.
 */

public class SortBrandData {


    /**
     * list_total : 1
     * list : [{"end_time":0,"id":"9","end_day":0,"thumb":"http://192.168.1.47//upload/images/gallery/2/y/107_src.png","sale":"8.0","catname":"三星"}]
     */

    private DataBean data;
    /**
     * data : {"list_total":1,"list":[{"end_time":0,"id":"9","end_day":0,"thumb":"http://192.168.1.47//upload/images/gallery/2/y/107_src.png","sale":"8.0","catname":"三星"}]}
     * flag : true
     * code : 0
     * msg : 操作成功
     * time : 1475915218
     */

    private boolean flag;
    private int code;
    private String msg;
    private int time;

    @Override
    public String toString() {
        return "{" + "\"data\"" + ":" + data +
                "," + "\"flag\"" + ":" + flag +
                "," + "\"code\"" + ":" + code +
                "," + "\"msg\"" + ":" + "\"" + msg + "\"" +
                "," + "\"time\"" + ":" + time + "}";

    }

    public DataBean getData() {
        return data;
    }

    public void setData(DataBean data) {
        this.data = data;
    }

    public boolean isFlag() {
        return flag;
    }

    public void setFlag(boolean flag) {
        this.flag = flag;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public int getTime() {
        return time;
    }

    public void setTime(int time) {
        this.time = time;
    }

    public static class DataBean {
        private int list_total;
        /**
         * end_time : 0
         * id : 9
         * end_day : 0
         * thumb : http://192.168.1.47//upload/images/gallery/2/y/107_src.png
         * sale : 8.0
         * catname : 三星
         */

        private List<ListBean> list;

        @Override
        public String toString() {
            return "{" + "\"list_total\"" + ":" + list_total +
                    "," + "\"list\"" + ":" + list + "}";

        }

        public int getList_total() {
            return list_total;
        }

        public void setList_total(int list_total) {
            this.list_total = list_total;
        }

        public List<ListBean> getList() {
            return list;
        }

        public void setList(List<ListBean> list) {
            this.list = list;
        }

        public static class ListBean {
            private int end_time;
            private String id;
            private int end_day;
            private String thumb;
            private String sale;
            private String catname;

            @Override
            public String toString() {
                return "{" +
                        "\"end_time\"" + ":" + end_time + ","
                        + "\"id\"" + ":" + "\"" + id + "\"" + ","
                        + "\"end_day\"" + ":" + end_day + ","
                        + "\"thumb\"" + ":" + "\"" + thumb + "\"" + ","
                        + "\"sale\"" + ":" + "\"" + sale + "\"" + ","
                        + "\"catname\"" + ":" + "\"" + catname + "\""
                        + "}";

            }

            public int getEnd_time() {
                return end_time;
            }

            public void setEnd_time(int end_time) {
                this.end_time = end_time;
            }

            public String getId() {
                return id;
            }

            public void setId(String id) {
                this.id = id;
            }

            public int getEnd_day() {
                return end_day;
            }

            public void setEnd_day(int end_day) {
                this.end_day = end_day;
            }

            public String getThumb() {
                return thumb;
            }

            public void setThumb(String thumb) {
                this.thumb = thumb;
            }

            public String getSale() {
                return sale;
            }

            public void setSale(String sale) {
                this.sale = sale;
            }

            public String getCatname() {
                return catname;
            }

            public void setCatname(String catname) {
                this.catname = catname;
            }
        }
    }
}
